/*
 * Created on Jul 5, 2004
 *
 */
package littlecyberwar.model;

import java.io.*;
import java.awt.geom.AffineTransform;
import javax.swing.*;
import java.awt.*;
import java.util.*;

import littlecyberwar.model.*;
import littlecyberwar.ui.*;
import littlecyberwar.tool.*;

/**
 * @author Milton  Soong
 *
 *later on the whole result array is passed in in its raw form so they can be 
 *gotten by the game manager 
 * 
 */
public class RemoveCommand  extends Command implements Serializable {
	String trayName;
	String subTrayName;
	ArrayList elementIds;
	
	public RemoveCommand(String trayNameIn, String subTrayNameIn, ArrayList elements) {
		trayName = trayNameIn;
		subTrayName = subTrayNameIn;
		elementIds = new ArrayList();
		for ( int i = 0; i < elements.size(); i++ ){
			SelectedElementContainer cont = (SelectedElementContainer)elements.get(i);
			Element el = cont.element;
			Integer id = el.getElementId();
			elementIds.add(id);
		}
	}

	/**
	 * @return
	 */
	public int getType() {
	  return ( _commandType_remove );
	}


}
